/*
 * socket_service.cpp
 *
 *  Created on: 2016-2-27
 *      Author: ZhangXiyin
 */

#include "service.h"
#include <boost/bind.hpp>
#include "utils/system.h"
namespace eyas{
namespace thread{

service::service()
:concurrent_(eyas::system::get_cpu_core_count()*2), io_service_(concurrent_){
}
service::~service() {
	this->io_service_.stop();
}
int service::concurrent(){
	return this->concurrent_;
}
boost::asio::io_service& service::io_service(){
	return this->io_service_;
}

}
}
